import { request } from '@/utils/request';
import CRUD from '@/utils/request/CRUD';

// 通知列表CRUD
export const noticeListCRUD = CRUD('/system/message-notify');

// 阅读
export function read(data: Record<string, any>) {
  return request.put({
    url: '/system/message-notify/update-isread-by-id',
    data,
  });
}

// 批量阅读
export function batchRead(data: Record<string, any>) {
  return request.put({
    url: '/system/message-notify/update-isread-by-ids',
    data,
  });
}
